package com.jhs.boot.system.controller;

import com.jhs.boot.common.result.Result;
import com.jhs.boot.system.model.vo.GraphNodeVO;
import com.jhs.boot.system.model.vo.NodeStatistic;
import com.jhs.boot.system.model.vo.NodesThirdVO;
import com.jhs.boot.system.model.vo.NodesVO;
import com.jhs.boot.system.service.StatisticService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Classname StatisticController
 * @Description 统计节点、人员、等类
 * @Date 2025/8/21 12:43
 * @Created by zxy
 */
@Tag(name = "统计接口接口")
@RestController
@RequestMapping("/api/v1/statistic")
@RequiredArgsConstructor
public class StatisticController {
    @Autowired
    private StatisticService statisticService;

    @Operation(summary = "统计节点信息")
    @GetMapping("/count")
    public Result<NodeStatistic> count() {
        return Result.success(statisticService.count());
    }
}
